import request from '@/utils/request'

// 查询学员试卷列表
export function listPaper(query) {
  return request({
    url: '/student/paper/list',
    method: 'get',
    params: query
  })
}

// 查询学员试卷详细
export function getPaper(studentPaperId) {
  return request({
    url: '/student/paper/' + studentPaperId,
    method: 'get'
  })
}

// 新增学员试卷
export function addPaper(data) {
  return request({
    url: '/student/paper',
    method: 'post',
    data: data
  })
}

// 修改学员试卷
export function updatePaper(data) {
  return request({
    url: '/student/paper',
    method: 'put',
    data: data
  })
}

// 删除学员试卷
export function delPaper(studentPaperId) {
  return request({
    url: '/student/paper/' + studentPaperId,
    method: 'delete'
  })
}
